using System;
using Brouteforce.UserInterface.Abstracts;
using Brouteforce.utilities;
using Microsoft.Xna.Framework;

namespace Brouteforce.UserInterface.UIControls
{
    public class Label : AbstractUIControl
    {
        private String _labelText;
        private Color _labelTextColor;

        public Label(string name, string labelText, Rectangle surroundingRectangle)
            : base(name, surroundingRectangle)
        {
            _labelTextColor = Color.Blue;
            _labelText = labelText;
        }

        public override void Update()
        {
            
        }

        public void SetLabelText(string labeltext)
        {
            _labelText = labeltext;
        }

        public void SetLabelTextColor(Color color)
        {
            _labelTextColor = color;
        }

        public override void Draw(GameTime gameTime)
        {
            Draws.DrawString(CurrentUIcontrolRectangle.X, CurrentUIcontrolRectangle.Y, _labelText, _labelTextColor);
        }
    }
}
